<script setup lang="ts">
import EmptyImage from "@/assets/images/empty-image.png";
const props = withDefaults(
	defineProps<{
		// 图片地址
		image?: string;
		// 图片大小
		imageSize?: number;
		// 描述
		description?: string;
	}>(),
	{
		image: EmptyImage,
		imageSize: 50,
		description: "暂无数据"
	}
);
</script>

<template>
	<van-empty :image="EmptyImage" :image-size="props.imageSize" :description="props.description">
		<template v-if="$slots.default">
			<slot></slot>
		</template>
		<template v-if="$slots.image">
			<slot name="image"></slot>
		</template>
		<template v-if="$slots.description">
			<slot name="description"></slot>
		</template>
	</van-empty>
</template>

<style scoped lang="less"></style>
